<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="Ver Cliente"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="Identificador Interno"/>
                    <h:outputText value="#{customerController.selected.customerid}" title="#{bundle.ViewCustomerTitle_customerid}"/>
                    <h:outputText value="Nombres"/>
                    <h:outputText value="#{customerController.selected.customerfirstname}" title="#{bundle.ViewCustomerTitle_customerfirstname}"/>
                    <h:outputText value="Apellidos"/>
                    <h:outputText value="#{customerController.selected.customerlastname}" title="#{bundle.ViewCustomerTitle_customerlastname}"/>
                    <h:outputText value="Correo Electronico"/>
                    <h:outputText value="#{customerController.selected.customeremail}" title="#{bundle.ViewCustomerTitle_customeremail}"/>
                    <h:outputText value="Clave Internet"/>
                    <h:outputText value="#{customerController.selected.customerpassword}" title="#{bundle.ViewCustomerTitle_customerpassword}"/>
                    <h:outputText value="Tipo"/>
                    <h:outputText value="#{customerController.currentType}" title="#{bundle.ViewCustomerTitle_customertype}"/>
                    <h:outputText value="Numero de Documento"/>
                    <h:outputText value="#{customerController.selected.customerdocument}" title="#{bundle.ViewCustomerTitle_customerdocument}"/>
                    
                    <h:outputText value="Ultima Tarjeta Usada"/>
                    <h:outputText value="#{customerController.selected.lastusedcreditcardid}" title="#{bundle.ViewCustomerTitle_lastusedcreditcardid}"/>
                    <h:outputText value="Ultima Direccion Usada"/>
                    <h:outputText value="#{customerController.selected.lastusedaddressid}" title="#{bundle.ViewCustomerTitle_lastusedaddressid}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{customerController.destroyAndView}" value="Eliminar"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="Modificar"/>
                <br />
                <h:commandLink action="#{customerController.prepareCreate}" value="Crear Nuevo Cliente" />
                <br />
                <h:commandLink action="#{customerController.prepareList}" value="Ver Clientes"/>
                <br />
                <br />
                <h:commandLink value="Menu Principal" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
